import request from '@/utils/request'

// 查询施工阶段列表
export function listConstructionPhase(query) {
  return request({
    url: '/business/constructionPhase/list',
    method: 'get',
    params: query
  })
}

// 查询施工阶段详细
export function getConstructionPhase(constructionId) {
  return request({
    url: '/business/constructionPhase/' + constructionId,
    method: 'get'
  })
}

// 新增施工阶段
export function addConstructionPhase(data) {
  return request({
    url: '/business/constructionPhase',
    method: 'post',
    data: data
  })
}

// 修改施工阶段
export function updateConstructionPhase(constructionId, data) {
  return request({
    url: '/business/constructionPhase/' + constructionId,
    method: 'put',
    data: data
  })
}

// 删除施工阶段
export function delConstructionPhase(constructionId) {
  return request({
    url: '/business/constructionPhase/' + constructionId,
    method: 'delete'
  })
}
